package com.jixi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jixi.pojo.entity.OrderDaily;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Date;

@Mapper
public interface OrderDailyMapper extends BaseMapper<OrderDaily> {
    /**
     * 根据日期查询今日订餐
     * */
    Long getByOrderCount(String formattedDate, Long teacherId);
    /**
     * 根据日期查询今日退餐
     * */
    Long getByReturnCount(String formattedDate, Long teacherId);
    /**
     * 查询累计订餐天数
     * */
    Long getOderDays(Long teacherId);
    /**
     * 累计订餐人数
     * */
    Long getOrderCounts(String formattedDate, Long teacherId);
}
